package com.shi.yoyoshop.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 首页推荐商品
 */
@Data
@TableName(value = "`top`")
public class Top {
    /**
     * "榜单id"
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * "榜单类型(1今日推荐/2热销/3新品)"
     */
    @TableField(value = "`type`")
    private Integer type;

    /**
     * "商品id"
     */
    @TableField(value = "good_id")
    private Integer goodId;
}